package com.chilli.cosima.data.dao;

import java.util.Map;

import com.chilli.cosima.data.bean.Customer;

public interface CustomerDAO
{

	public Long createCustomer(Customer customer);

	public void deleteCustomer(Long id);

	public void updateCustomer(Customer customer);

	public Customer findCustomerById(Long id);

	@SuppressWarnings("unchecked")
	public Map findCustomerByPage(int current, int pageSize);

	@SuppressWarnings("unchecked")
	public Map findCustomerByPageAndQuery(int current, int pageSize,
			String customer);
}
